package com.goalone.web;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.websocket.server.PathParam;

/**
 * 类描述:
 *
 * @author zhangguoliang3909
 * @create 2018-08-26 10:15
 */
@RestController
@RequestMapping("/sayHi")
public class HelloController {


    @RequestMapping(path = "{name}", method = RequestMethod.GET)
    public String sayHi(@PathVariable("name") String name) {

        return "成功了，" + name + "！";
    }

}
